package com.nowcoder.community.dao.elasticsearch;

import com.nowcoder.community.entity.DiscussPost;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * 父接口事先定义好了对es服务器的增删改查
 * ElasticsearchRepository<DiscussPost, Integer>是里面一个是实体，一个是主键的类型
 *
 */
@Repository
public interface DiscussPostRepository extends ElasticsearchRepository<DiscussPost, Integer> {



}
